﻿using Abp.Application.Services.Dto;
using SingleUserMall.Common;
using SingleUserMall.Mall.Form;
using SingleUserMall.Mall.VO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Mall
{
    /// <summary>
    /// 商城管理
    /// </summary>
    [Description("商城管理")]
    public interface IMallManageAppService:IManageService
    {
        /// <summary>
        /// 获取banner列表
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<ListResultDto<BannerVO>> GetBannersAsync(HasStoreForm form);
        /// <summary>
        /// 获取banner详情
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<BannerVO> GetBannerAsync(SingleId<long> form);
        /// <summary>
        /// 保存banner
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SaveBannerAsync(BannerForm form);
        /// <summary>
        /// 移除banner
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task RemoveBannerAsync(SingleId<long> form);
        /// <summary>
        /// 上移banner
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task MoveUpBannerAsync(SingleId<long> form);
        /// <summary>
        /// 下移banner
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task MoveDownBannerAsync(SingleId<long> form);
        /// <summary>
        /// 保存体验金规则
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SavePointRulesAsync(PointRuleForm form);
        /// <summary>
        /// 获取体验金规则列表
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<ListResultDto<PointRulesVO>> GetPointRulesAsync();
        /// <summary>
        /// 保存体验金释放规则
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SaveReleasePointRulesAsync(ReleasePointRuleForm form);
        /// <summary>
        /// 获取体验金释放规则列表
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<ListResultDto<ReleasePointRulesVO>> GetReleasePointRulesAsync();
        /// <summary>
        /// 删除体验金释放规则
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task RemoveReleasePointAsync(SingleId<long> form);
        /// <summary>
        /// 获取所有活动列表
        /// </summary>
        /// <param></param>
        /// <returns></returns>
        Task<ListResultDto<ActiveVO>> GetActivesAsync();
        /// <summary>
        /// 下移活动
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task MoveDownActiveAsync(SingleId<long> form);
        /// <summary>
        /// 上移活动
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task MoveUpActiveAsync(SingleId<long> form);
        /// <summary>
        /// 保存活动
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SaveActiveAsync(ActiveForm form);
    }
}
